<include file="Public:header" />

<div id="page-body">
    <div id="qan-breadcrumbs"><span><a href="{$_global.site_url}">{$Think.lang.home}</a></span>&gt;&nbsp;<span>{$Think.lang.reg_account}</span></div>
    <div id="register-container">
        <eq name="type" value="local">
        <form method="post" action="{:U('Register/doLocalRegister')}">
            <eq name="_global.require_activation" value="by_user"><p class="note">{$Think.lang.reg_require_confirm}</p></eq>
            <table class="tb">
                <tr>
                    <td align="right"><label for="username"> * {$Think.lang.username}:</label></td>
                    <td><input id="username" class="input" type="text" name="username" size="35" /></td>
                    <td class="tips">{$Think.lang.username_explain}</td>
                </tr>        
                <tr>
                    <td align="right"><label for="password"> * {$Think.lang.password}:</label></td>
                    <td><input id="password" class="input" type="password" name="password" size="35" /></td>
                    <td class="tips">{$Think.lang.password_explain}</td>
                </tr>
                <tr>
                    <td align="right"><label for="repassword"> * {$Think.lang.repassword}:</label></td>
                    <td><input id="repassword" class="input" type="password" name="repassword" size="35" /></td>
                    <td></td>
                </tr>
                <tr>
                    <td align="right"><label for="email"> * {$Think.lang.email}:</label></td>
                    <td><input id="email" class="input" type="text" name="email" size="35" /></td>
                    <td class="tips"></td>
                </tr>
                <eq name="_global.register_enable" value="invite">
                <tr>
                    <td align="right"><label for="key"> * {$Think.lang.invite_key}:</label></td>
                    <td><input id="key" class="input" type="text" name="invite_key" size="35" /></td>
                    <td class="tips"></td>
                </tr>
                </eq>
                <eq name="captcha" value="1">
                <tr>
                    <td align="right"><label for="verify"> * {$Think.lang.captcha}:</label></td>
                    <td><input id="verify" class="input" type="text" name="verify" size="35" /></td>
                    <td><div class="captcha-container"><img class="captcha" src="{:U('Ajax/captcha')}" title="{$Think.lang.captcha_again}" onclick="reCaptcha(this);" /></div></td>
                </tr>
                </eq>
                <tr>
                    <td><input type="submit" class="button" value="{$Think.lang.reg_signup}" /></td>
                    <td>{$Think.lang.reg_get_openid_account}</td>
                </tr>
            </table>
        </form>
        </eq>
        <eq name="type" value="external">
        <form method="POST" action="{:U('Register/doExternalRegister')}">
            <table class="tb">
                <tr>
                    <td align="right"><label for="username">{$Think.lang.reg_username}:</label></td>
                    <td><input id="username" class="input" type="text" name="username" size="35" value="{$account.username}" /></td>
                    <td class="tips">{$Think.lang.reg_username_explain}</td>
                </tr>
                <tr>
                    <td align="right"><label for="email">{$Think.lang.reg_email}:</label></td>
                    <td><input id="email" class="input" type="text" name="email" size="35" value="{$account.email}" /></td>
                    <td class="tips">{$Think.lang.reg_email_explain}</td>
                </tr>
                <tr>
                    <td colspan="3"><input type="submit" class="button" value="{$Think.lang.reg_confirm_external_account}" /></td>
                </tr>
            </table>
        </form>
        </eq>
    </div>
</div>

<include file="Public:footer" />